package com.woniu.springbootshiro.service;

import com.woniu.springbootshiro.mapper.AlarmLightMapper;
import com.woniu.springbootshiro.pojo.AlarmLight;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AlarmLightService {
    @Autowired
    private AlarmLightMapper alm;

    public List<AlarmLight> queryAllAlarmLight(){return alm.queryAllAlarmLight();}

    public int addAlarmLight(AlarmLight alarmLight){return alm.insertSelective(alarmLight);}

    public int updateAlarm(Integer id){return alm.updateAlarm(id);}
}
